﻿using System;

namespace PacketRush.Core
{
    /// <summary>
    /// Describes boolean options for a packet.
    /// </summary>
    /// <remarks>
    /// PacketFlags are used on a packet to set flags that indicate
    /// how the packet should be interpreted by the networking system.
    /// </remarks>
    [Flags]
    public enum PacketFlags : byte
    {
        /// <summary>
        /// No flags.
        /// </summary>
        None = 0x00,
        /// <summary>
        /// Reliable packets are ensured to reach recipients.
        /// </summary>
        Reliable = 0x01,
        /// <summary>
        /// Indicates an acknowledgement packet.
        /// </summary>
        Ack = 0x02
    }
}